-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add StatefulSet resource #93
Conversation
t.end(); | ||
}).catch(e => { | ||
console.log(e); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can remove this catch once the tests will be passing
test/statefulset-test.js
Outdated
|
||
nock(clientConfig.cluster) | ||
.matchHeader('authorization', `Bearer ${clientConfig.user.token}`) // taken from the config | ||
.get(`/oapi/v1/namespaces/${clientConfig.context.namespace}/statefulsets/${statefulSetName}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be /apis/apps/v1beta1
instead of /oapi/v1/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes...stupid mistake:). Thanks
test/statefulset-test.js
Outdated
|
||
nock(clientConfig.cluster) | ||
.matchHeader('authorization', `Bearer ${clientConfig.user.token}`) // taken from the config | ||
.post(`/oapi/v1/namespaces/${clientConfig.context.namespace}/statefulsets`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be /apis/apps/v1beta1
instead of /oapi/v1/
test/statefulset-test.js
Outdated
test('find - statefulsets - find - no statefulset name', (t) => { | ||
openshiftRestClient(settings).then((client) => { | ||
client.statefulsets.find().catch((err) => { | ||
t.equal(err.message, 'StatefulSet Name is required', 'error message should return'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests fail because it is looking for Stateful Set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again...stupid mistake:) Thanks a lot for review. I am about to push an update.
bc6e85b
to
4064ea5
Compare
Pull Request Test Coverage Report for Build 279
💛 - Coveralls |
@lholmquist Yeah sure. |
4064ea5
to
fc75bbc
Compare
No description provided.